package com.zhiyou.springcloud.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.zhiyou.springcloud.bean.classes;
import com.zhiyou.springcloud.bean.leave;
import com.zhiyou.springcloud.bean.teachers;
@Mapper
public interface leaveMapper {
   List<leave> getLeavesByConditions(@Param("lid")Integer lid,@Param("cname")String cname,@Param("lreason")String lreason,@Param("approval")Integer approval);
   
   int updateLeave(Integer lid);
   
   List<classes> selectCnameByTid(Integer tid);
   
   int noPassLeave(@Param("lid")Integer lid,@Param("nopassreason")String nopassreason);
   
   List<teachers> getAllTeachers();
   
   int addLeave(leave leave);
}